<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/widgets/qmenubar.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QMenuBar</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QMenuBar</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qmenubar.html">QMenuBar class reference</a></li></ul></p>
<h3>Public Types</h3>
<ul>
<li><div class="fn"/>enum <b><a href="qmenubar-qt3.html#Separator-enum">Separator</a></b> { Never, InWindowsStyle }</li>
</ul>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qmenubar-qt3.html#QMenuBar-2">QMenuBar</a></b> ( QWidget * <i>parent</i>, const char * <i>name</i> )</li>
<li><div class="fn"/>QKeySequence <b><a href="qmenubar-qt3.html#accel">accel</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#activateItemAt">activateItemAt</a></b> ( int <i>index</i> )</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#autoGeometry">autoGeometry</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#changeItem">changeItem</a></b> ( int <i>id</i>, const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#changeItem-2">changeItem</a></b> ( int <i>id</i>, const QPixmap &amp; <i>pixmap</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#changeItem-3">changeItem</a></b> ( int <i>id</i>, const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#connectItem">connectItem</a></b> ( int <i>id</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</li>
<li><div class="fn"/>uint <b><a href="qmenubar-qt3.html#count">count</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#disconnectItem">disconnectItem</a></b> ( int <i>id</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</li>
<li><div class="fn"/>QMenuItem * <b><a href="qmenubar-qt3.html#findItem">findItem</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#frameWidth">frameWidth</a></b> () const</li>
<li><div class="fn"/>QIcon <b><a href="qmenubar-qt3.html#iconSet">iconSet</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#idAt">idAt</a></b> ( int <i>index</i> ) const</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#indexOf">indexOf</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem">insertItem</a></b> ( const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i>, const QKeySequence &amp; <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-2">insertItem</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i>, const QKeySequence &amp; <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-3">insertItem</a></b> ( const QPixmap &amp; <i>pixmap</i>, const QObject * <i>receiver</i>, const char * <i>member</i>, const QKeySequence &amp; <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-4">insertItem</a></b> ( const QString &amp; <i>text</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-5">insertItem</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-6">insertItem</a></b> ( const QString &amp; <i>text</i>, QMenu * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-7">insertItem</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i>, QMenu * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-8">insertItem</a></b> ( const QPixmap &amp; <i>pixmap</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertItem-9">insertItem</a></b> ( const QPixmap &amp; <i>pixmap</i>, QMenu * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#insertSeparator-2">insertSeparator</a></b> ( int <i>index</i> = -1 )</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#isItemActive">isItemActive</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#isItemChecked">isItemChecked</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#isItemEnabled">isItemEnabled</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#isItemVisible">isItemVisible</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#itemParameter">itemParameter</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#margin">margin</a></b> () const</li>
<li><div class="fn"/>QPixmap <b><a href="qmenubar-qt3.html#pixmap">pixmap</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#removeItem">removeItem</a></b> ( int <i>id</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#removeItemAt">removeItemAt</a></b> ( int <i>index</i> )</li>
<li><div class="fn"/>Separator <b><a href="qmenubar-qt3.html#separator">separator</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setAccel">setAccel</a></b> ( const QKeySequence &amp; <i>key</i>, int <i>id</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setAutoGeometry">setAutoGeometry</a></b> ( bool <i>b</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setItemChecked">setItemChecked</a></b> ( int <i>id</i>, bool <i>check</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setItemEnabled">setItemEnabled</a></b> ( int <i>id</i>, bool <i>enable</i> )</li>
<li><div class="fn"/>bool <b><a href="qmenubar-qt3.html#setItemParameter">setItemParameter</a></b> ( int <i>id</i>, int <i>param</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setItemVisible">setItemVisible</a></b> ( int <i>id</i>, bool <i>visible</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setMargin">setMargin</a></b> ( int <i>margin</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setSeparator">setSeparator</a></b> ( Separator <i>sep</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#setWhatsThis">setWhatsThis</a></b> ( int <i>id</i>, const QString &amp; <i>w</i> )</li>
<li><div class="fn"/>QString <b><a href="qmenubar-qt3.html#text">text</a></b> ( int <i>id</i> ) const</li>
<li><div class="fn"/>QString <b><a href="qmenubar-qt3.html#whatsThis">whatsThis</a></b> ( int <i>id</i> ) const</li>
</ul>
<ul>
<li><div class="fn"/>60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h3>Signals</h3>
<ul>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#activated">activated</a></b> ( int <i>itemId</i> )</li>
<li><div class="fn"/>void <b><a href="qmenubar-qt3.html#highlighted">highlighted</a></b> ( int <i>itemId</i> )</li>
</ul>
<h3>Protected Functions</h3>
<ul>
<li><div class="fn"/>int <b><a href="qmenubar-qt3.html#itemAtPos">itemAtPos</a></b> ( const QPoint &amp; <i>p</i> )</li>
<li><div class="fn"/>QRect <b><a href="qmenubar-qt3.html#itemRect">itemRect</a></b> ( int <i>index</i> )</li>
</ul>
<ul>
<li><div class="fn"/>1 protected function inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="Separator-enum"></a>enum QMenuBar::Separator</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>QMenuBar::Never</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
<tr><td valign="top"><tt>QMenuBar::InWindowsStyle</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
</table></p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QMenuBar-2"></a>QMenuBar::QMenuBar ( <a href="qwidget.html">QWidget</a> * <i>parent</i>, const char * <i>name</i> )</h3>
<p>Use one of the constructors that doesn't take the <i>name</i> argument and then use <a href="qobject.html#objectName-prop">setObjectName</a>() instead.</p>
<h3 class="fn"><a name="accel"></a><a href="qkeysequence.html">QKeySequence</a> QMenuBar::accel ( int <i>id</i> ) const</h3>
<p>Use shortcut() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p>See also <a href="qmenubar-qt3.html#setAccel">setAccel</a>().</p>
<h3 class="fn"><a name="activateItemAt"></a>void QMenuBar::activateItemAt ( int <i>index</i> )</h3>
<p>Use activate() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="activated"></a>void QMenuBar::activated ( int <i>itemId</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Use <a href="qmenubar.html#triggered">triggered</a>() instead.</p>
<h3 class="fn"><a name="autoGeometry"></a>bool QMenuBar::autoGeometry () const</h3>
<p>Returns true if the menu bar automatically resizes itself when its parent widget is resized; otherwise returns false.</p>
<p>This feature is provided to help porting to Qt 4. We recommend against using it in new code.</p>
<p>See also <a href="qmenubar-qt3.html#setAutoGeometry">setAutoGeometry</a>().</p>
<h3 class="fn"><a name="changeItem"></a>void QMenuBar::changeItem ( int <i>id</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Use setText() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="changeItem-2"></a>void QMenuBar::changeItem ( int <i>id</i>, const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use setText() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="changeItem-3"></a>void QMenuBar::changeItem ( int <i>id</i>, const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use <a href="qwidget-qt3.html#setIcon">setIcon</a>() and setText() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="connectItem"></a>bool QMenuBar::connectItem ( int <i>id</i>, const <a href="qobject.html">QObject</a> * <i>receiver</i>, const char * <i>member</i> )</h3>
<p>Use <a href="qobject.html#connect">connect</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="count"></a><a href="qtglobal.html#uint-typedef">uint</a> QMenuBar::count () const</h3>
<p>Use <a href="qwidget.html#actions">actions</a>().count() instead.</p>
<h3 class="fn"><a name="disconnectItem"></a>bool QMenuBar::disconnectItem ( int <i>id</i>, const <a href="qobject.html">QObject</a> * <i>receiver</i>, const char * <i>member</i> )</h3>
<p>Use <a href="qobject.html#disconnect">disconnect</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="findItem"></a><a href="qmenuitem.html">QMenuItem</a> * QMenuBar::findItem ( int <i>id</i> ) const</h3>
<p>Use actions instead.</p>
<h3 class="fn"><a name="frameWidth"></a>int QMenuBar::frameWidth () const</h3>
<p>Use <a href="qwidget.html#style">style</a>()-&gt;pixelMetric(<a href="qstyle.html#PixelMetric-enum">QStyle::PM_MenuBarPanelWidth</a>, this) instead.</p>
<h3 class="fn"><a name="highlighted"></a>void QMenuBar::highlighted ( int <i>itemId</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Use <a href="qmenubar.html#hovered">hovered</a>() instead.</p>
<h3 class="fn"><a name="iconSet"></a><a href="qicon.html">QIcon</a> QMenuBar::iconSet ( int <i>id</i> ) const</h3>
<p>Use <a href="qwidget-qt3.html#icon">icon</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="idAt"></a>int QMenuBar::idAt ( int <i>index</i> ) const</h3>
<p>Use actions instead.</p>
<h3 class="fn"><a name="indexOf"></a>int QMenuBar::indexOf ( int <i>id</i> ) const</h3>
<p>Use <a href="qwidget.html#actions">actions</a>().indexOf(action) on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="insertItem"></a>int QMenuBar::insertItem ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, const <a href="qobject.html">QObject</a> * <i>receiver</i>, const char * <i>member</i>, const <a href="qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>Use one of the <a href="qwidget.html#insertAction">insertAction</a>() or <a href="qmenubar.html#addAction">addAction</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-2"></a>int QMenuBar::insertItem ( const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, const <a href="qobject.html">QObject</a> * <i>receiver</i>, const char * <i>member</i>, const <a href="qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qwidget.html#insertAction">insertAction</a>() or <a href="qmenubar.html#addAction">addAction</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-3"></a>int QMenuBar::insertItem ( const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i>, const <a href="qobject.html">QObject</a> * <i>receiver</i>, const char * <i>member</i>, const <a href="qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qwidget.html#insertAction">insertAction</a>(), <a href="qmenubar.html#addAction">addAction</a>(), <a href="qmenubar.html#insertMenu">insertMenu</a>(), or <a href="qmenubar.html#addMenu">addMenu</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-4"></a>int QMenuBar::insertItem ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qwidget.html#insertAction">insertAction</a>() or <a href="qmenubar.html#addAction">addAction</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-5"></a>int QMenuBar::insertItem ( const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qwidget.html#insertAction">insertAction</a>(), <a href="qmenubar.html#addAction">addAction</a>(), <a href="qmenubar.html#insertMenu">insertMenu</a>(), or <a href="qmenubar.html#addMenu">addMenu</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-6"></a>int QMenuBar::insertItem ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, <a href="qmenu.html">QMenu</a> * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qmenubar.html#insertMenu">insertMenu</a>(), or <a href="qmenubar.html#addMenu">addMenu</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-7"></a>int QMenuBar::insertItem ( const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, <a href="qmenu.html">QMenu</a> * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qmenubar.html#insertMenu">insertMenu</a>(), or <a href="qmenubar.html#addMenu">addMenu</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-8"></a>int QMenuBar::insertItem ( const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qwidget.html#insertAction">insertAction</a>(), <a href="qmenubar.html#addAction">addAction</a>(), <a href="qmenubar.html#insertMenu">insertMenu</a>(), or <a href="qmenubar.html#addMenu">addMenu</a>() overloads instead.</p>
<h3 class="fn"><a name="insertItem-9"></a>int QMenuBar::insertItem ( const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i>, <a href="qmenu.html">QMenu</a> * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use one of the <a href="qmenubar.html#insertMenu">insertMenu</a>(), or <a href="qmenubar.html#addMenu">addMenu</a>() overloads instead.</p>
<h3 class="fn"><a name="insertSeparator-2"></a>int QMenuBar::insertSeparator ( int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use <a href="qmenubar.html#addSeparator">addSeparator</a>() or <a href="qwidget.html#insertAction">insertAction</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> menuBar-&gt;insertSeparator();</font></pre>
<p>you can rewrite it as</p>
<pre> menuBar-&gt;addSeparator();</pre>
<p>This function was introduced in Qt 4.2.</p>
<h3 class="fn"><a name="isItemActive"></a>bool QMenuBar::isItemActive ( int <i>id</i> ) const</h3>
<p>Use <a href="qmenubar.html#activeAction">activeAction</a>() instead.</p>
<h3 class="fn"><a name="isItemChecked"></a>bool QMenuBar::isItemChecked ( int <i>id</i> ) const</h3>
<p>Use isChecked() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="isItemEnabled"></a>bool QMenuBar::isItemEnabled ( int <i>id</i> ) const</h3>
<p>Use <a href="qwidget.html#enabled-prop">isEnabled</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="isItemVisible"></a>bool QMenuBar::isItemVisible ( int <i>id</i> ) const</h3>
<p>Use <a href="qwidget.html#visible-prop">isVisible</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="itemAtPos"></a>int QMenuBar::itemAtPos ( const <a href="qpoint.html">QPoint</a> &amp; <i>p</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>There is no equivalent way to achieve this in Qt 4.</p>
<h3 class="fn"><a name="itemParameter"></a>int QMenuBar::itemParameter ( int <i>id</i> ) const</h3>
<p>Use <a href="qaction.html#data">QAction::data</a>() instead.</p>
<p>See also <a href="qmenubar-qt3.html#setItemParameter">setItemParameter</a>().</p>
<h3 class="fn"><a name="itemRect"></a><a href="qrect.html">QRect</a> QMenuBar::itemRect ( int <i>index</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Use actionGeometry() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="margin"></a>int QMenuBar::margin () const</h3>
<p>Returns the with of the the margin around the contents of the widget.</p>
<p>Use <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>() instead.</p>
<p>See also <a href="qmenubar-qt3.html#setMargin">setMargin</a>() and <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>().</p>
<h3 class="fn"><a name="pixmap"></a><a href="qpixmap.html">QPixmap</a> QMenuBar::pixmap ( int <i>id</i> ) const</h3>
<p>Use <a href="qpixmap.html">QPixmap</a>(<a href="qwidget-qt3.html#icon">icon</a>()) on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="removeItem"></a>void QMenuBar::removeItem ( int <i>id</i> )</h3>
<p>Use <a href="qwidget.html#removeAction">removeAction</a>() instead.</p>
<h3 class="fn"><a name="removeItemAt"></a>void QMenuBar::removeItemAt ( int <i>index</i> )</h3>
<p>Use <a href="qwidget.html#removeAction">removeAction</a>() instead.</p>
<h3 class="fn"><a name="separator"></a><a href="qmenubar-qt3.html#Separator-enum">Separator</a> QMenuBar::separator () const</h3>
<p>This function is provided only to make old code compile.</p>
<p>See also <a href="qmenubar-qt3.html#setSeparator">setSeparator</a>().</p>
<h3 class="fn"><a name="setAccel"></a>void QMenuBar::setAccel ( const <a href="qkeysequence.html">QKeySequence</a> &amp; <i>key</i>, int <i>id</i> )</h3>
<p>Use setShortcut() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p>See also <a href="qmenubar-qt3.html#accel">accel</a>().</p>
<h3 class="fn"><a name="setAutoGeometry"></a>void QMenuBar::setAutoGeometry ( bool <i>b</i> )</h3>
<p>Sets whether the menu bar should automatically resize itself when its parent widget is resized.</p>
<p>This feature is provided to help porting to Qt 4. We recommend against using it in new code.</p>
<p>See also <a href="qmenubar-qt3.html#autoGeometry">autoGeometry</a>().</p>
<h3 class="fn"><a name="setItemChecked"></a>void QMenuBar::setItemChecked ( int <i>id</i>, bool <i>check</i> )</h3>
<p>Use setChecked() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p>See also <a href="qmenubar-qt3.html#isItemChecked">isItemChecked</a>().</p>
<h3 class="fn"><a name="setItemEnabled"></a>void QMenuBar::setItemEnabled ( int <i>id</i>, bool <i>enable</i> )</h3>
<p>Use <a href="qwidget.html#enabled-prop">setEnabled</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p>See also <a href="qmenubar-qt3.html#isItemEnabled">isItemEnabled</a>().</p>
<h3 class="fn"><a name="setItemParameter"></a>bool QMenuBar::setItemParameter ( int <i>id</i>, int <i>param</i> )</h3>
<p>Use <a href="qaction.html#setData">QAction::setData</a>() instead.</p>
<p>See also <a href="qmenubar-qt3.html#itemParameter">itemParameter</a>().</p>
<h3 class="fn"><a name="setItemVisible"></a>void QMenuBar::setItemVisible ( int <i>id</i>, bool <i>visible</i> )</h3>
<p>Use <a href="qwidget.html#visible-prop">setVisible</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p>See also <a href="qmenubar-qt3.html#isItemVisible">isItemVisible</a>().</p>
<h3 class="fn"><a name="setMargin"></a>void QMenuBar::setMargin ( int <i>margin</i> )</h3>
<p>Sets the width of the margin around the contents of the widget to <i>margin</i>.</p>
<p>Use <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>() instead.</p>
<p>See also <a href="qmenubar-qt3.html#margin">margin</a>() and <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>().</p>
<h3 class="fn"><a name="setSeparator"></a>void QMenuBar::setSeparator ( <a href="qmenubar-qt3.html#Separator-enum">Separator</a> <i>sep</i> )</h3>
<p>This function is provided only to make old code compile.</p>
<p>See also <a href="qmenubar-qt3.html#separator">separator</a>().</p>
<h3 class="fn"><a name="setWhatsThis"></a>void QMenuBar::setWhatsThis ( int <i>id</i>, const <a href="qstring.html">QString</a> &amp; <i>w</i> )</h3>
<p>Use setWhatsThis() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p>See also <a href="qmenubar-qt3.html#whatsThis">whatsThis</a>().</p>
<h3 class="fn"><a name="text"></a><a href="qstring.html">QString</a> QMenuBar::text ( int <i>id</i> ) const</h3>
<p>Use text() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<h3 class="fn"><a name="whatsThis"></a><a href="qstring.html">QString</a> QMenuBar::whatsThis ( int <i>id</i> ) const</h3>
<p>Use whatsThis() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p>See also <a href="qmenubar-qt3.html#setWhatsThis">setWhatsThis</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
